package com.yunshang.shoppingmall.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

/**
 * 商品所有属性类
 */
public class ProductAlls implements Serializable {

    private Integer productId;

    private String productName;

    private Integer repId;

    private String productDesc;

    private String productUnit;

    private String supplier;

    private String productNo;

    private Integer classId;

    private String productUpState;

    private Timestamp uptime;

    private String productshortname;

    private String productseries;

    private String detailContent;

    private int activeSign;//活动标志
    private String proImg;//图片

    private List<ProductGuiGe> productGuiGe;//规格

    private List<ProductPrice> productPrice;//价格


    public List<ProductGuiGe> getProductGuiGe() {
        return productGuiGe;
    }

    public void setProductGuiGe(List<ProductGuiGe> productGuiGe) {
        this.productGuiGe = productGuiGe;
    }

    public List<ProductPrice> getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(List<ProductPrice> productPrice) {
        this.productPrice = productPrice;
    }

    public int getActiveSign() {
        return activeSign;
    }

    public void setActiveSign(int activeSign) {
        this.activeSign = activeSign;
    }

    public Timestamp getUptime() {
        return uptime;
    }

    public void setUptime(Timestamp uptime) {
        this.uptime = uptime;
    }



    public String getDetailContent() {
        return detailContent;
    }

    public void setDetailContent(String detailContent) {
        this.detailContent = detailContent;
    }

    public Integer getProductId() {

        return productId;
    }

    public String getProImg() {
        return proImg;
    }

    public void setProImg(String proImg) {
        this.proImg = proImg;
    }

    public String getProductshortname() {
        return productshortname;
    }

    public void setProductshortname(String productshortname) {
        this.productshortname = productshortname;
    }

    public String getProductseries() {
        return productseries;
    }

    public void setProductseries(String productseries) {
        this.productseries = productseries;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getRepId() {
        return repId;
    }

    public void setRepId(Integer repId) {
        this.repId = repId;
    }

    public String getProductDesc() {
        return productDesc;
    }

    public void setProductDesc(String productDesc) {
        this.productDesc = productDesc;
    }

    public String getProductUnit() {
        return productUnit;
    }

    public void setProductUnit(String productUnit) {
        this.productUnit = productUnit;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public String getProductNo() {
        return productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {

        this.classId = classId;
    }

    public String getProductUpState() {

        return productUpState;
    }

    public void setProductUpState(String productUpState) {
            if("1".equals(productUpState)){
                this.productUpState = "已上架";
            }else{
                this.productUpState = "已下架";
            }

    }


}
